package com.yoyo.itravel.bean;

import java.util.List;

/**
 *  机型实体类
 */
public class PlanType {
    private String planTypeId;//机型id
    private String name;//机型名称
    private String size;//机型大小
    private String imgUrl;//机型图片路径

    private List<Airline> airlines;//一个机型可以被多家航空公司持有，一个航空公司也可以拥有多种机型

    public PlanType() {
    }

    public PlanType(String planTypeId, String name, String size, String imgUrl) {
        this.planTypeId = planTypeId;
        this.name = name;
        this.size = size;
        this.imgUrl = imgUrl;
    }

    public String getPlanTypeId() {
        return planTypeId;
    }

    public void setPlanTypeId(String planTypeId) {
        this.planTypeId = planTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public List<Airline> getAirlines() {
        return airlines;
    }

    public void setAirlines(List<Airline> airlines) {
        this.airlines = airlines;
    }

    @Override
    public String toString() {
        return "PlanType{" +
                "planTypeId='" + planTypeId + '\'' +
                ", name='" + name + '\'' +
                ", size='" + size + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", airlines=" + airlines +
                '}';
    }
}
